package com.example.redisDemo.test;

public class Math {
	
	 public int add(int a,int b){
		 return a+b;
		 }
     
     public int sub(int a,int b){
    	 return a-b;
    	 }
     
     public int mul(int a,int b){
    	 return a*b;
    	 }
     
     public int div(int a,int b){
    	 if(b==0)
    		 throw new ArithmeticException("divisor shouldn't be 0");
    	 return a/b;
    	 }

}
